<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <title>session</title>        
 </head>
 <body>
 	<%
 		String name=request.getParameter("name");
 		session.setAttribute("name",name);
 	%>
 	<form action="result.jsp" id="form" name="form" method="post">
 		<div align="center">
 			<table width="28%" border="0">
 				<tr>
 					<td >您的名字是：</td>
 					<td><%=name %></td>
 				</tr>
 				<tr>
 					<td >您最喜欢去地方是：</td>
 					<td width="64%">
 						<label>
 							<input type="text" name="address">
 						</label>
 					</td>
 				</tr>
 				<tr>
 					<td colspan="2">
 						<label>
 							<div align="center">
 								<input type="submit" name="Submit" value="提交">
 							</div>
 						</label>
 					</td>
 				</tr>
 			</table>
 		</div>
 	</form>
 </body>
</html>